<h2><?php echo __('Estatísticas de Cursos');?></h2>

<table class="table">
	<thead>
		<tr>
			<th><?php echo __('Curso');?></th>
			<th><?php echo __('Total de Inscritos');?></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($totais as $curso=>$item){?>
			<tr>
				<td><?php echo $curso;?></td>
				<td><?php echo $item;?></td>
			</tr>		
		<?php }?>
	</tbody>
</table>

<h2 id="lista"><?php echo __('Lista de Usuários por Minicurso');?></h2>
<div class="alert-info">
<p><?php echo __('As informações presentes na tabela são compativeis com o MS Excel');?></p>
</div>
<table cellpadding="0" cellspacing="0" class="table table-striped table-bordered table-hover" style="font-size:0.8em;">
<thead>
<tr>
	<th><?php echo __("Usuário");//pr($cursos_usuarios); ?></th>
	<th><?php echo __("E-mail"); ?></th>
	
</tr>
</thead>
<div class="btn-toolbar">
	<div class="btn-group">
		<div class="btn-group">
				<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><?php echo __('Minicursos ');?> <b class="caret"></b></a>
			<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
			<?php foreach($cursos as $key=>$item){?>
				<?php echo '<li>'.$this->Html->link($item, array('action'=>'totaisPorMinicurso', $key, '#' => 'lista'), array('class'=>'text-left')).'</li>';?>
			<?php }?>
			</ul>
		</div>
	</div>
</div>
<tbody>
<?php foreach ($cursos_usuarios as $crs_urs):  ?>
<tr>
	<td><?php echo $crs_urs['Usuario']['nome']; ?></td>
	<td><?php echo $crs_urs['Usuario']['email']; ?></td>
</tr>
<?php endforeach; ?>
<tbody>
</table>